package com.zking.web.zzsf;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.zking.dao.domain.Information;
import com.zking.dao.domain.Payment;
import com.zking.dao.domain.Post;
import com.zking.dao.domain.Word;
import com.zking.service.impl.zzsf.PaymentImpl;
import com.zking.service.impl.zzsf.PaymentImpl;

@Controller
public class PaymentController {
	@Autowired
	private PaymentImpl payImpl;
	@RequestMapping(value = "/pay")
	public String into(Payment pay) {
		int i  = payImpl.addPay(pay);
		if (i != 0) {
			return "alipay.trade.page.pay";
		}else {
			return "voucher";
		}
	}
	
	
	
}
